/* 分类导航样式 */
.category-nav {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.category-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-nav ul {
    list-style: none;
    display: flex;
    overflow-x: auto;
    padding: 0;
    margin: 0;
    gap: 15px;
}

.category-nav ul li {
    white-space: nowrap;
}

.category-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.category-nav ul li a:hover {
    background-color: #e8e8e8;
    color: #007bff;
}

/* 分类标签样式 */
.post-category {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 12px;
    margin: 5px 0;
}

/* 分类筛选样式 */
.category-filter-container {
    display: inline-block;
    margin-left: auto;
}

.category-filter {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

/* 发布页面分类选择样式 */
.category-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    margin-top: 5px;
}